package personnal.blogprinter.data;

import java.util.List;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.joda.time.DateTime;

public class PostInfo {
	private Integer id;
	// from token.title (string)
	private String title;
	// from token.description (string)
	private String content;
	// from token.dateCreated (date) ou date_created_gmt
	private DateTime dateCreated;
	//	from token.wp_author_display_name (string)
	private String author;
	//	from token.categories (string[])
	private String categories;
	//	from token.categories (string[])
	private String tags;
	// from token.post_status (string)
	private String status;
	// coments
	private List<PostComment> comments;

	public PostInfo() {
		super();
	}

	public PostInfo(Integer id) {
		super();
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public DateTime getDateCreated() {
		return dateCreated;
	}

	public void setDateCreated(DateTime dateCreated) {
		this.dateCreated = dateCreated;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getCategories() {
		return categories;
	}

	public void setCategories(String categories) {
		this.categories = categories;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public List<PostComment> getComments() {
		return comments;
	}

	public void setComments(List<PostComment> comments) {
		this.comments = comments;
	}

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this)+'\n';
	}
}
